home *** CD-ROM | disk | FTP | other *** search
- Path: pioneer.uspto.gov!schubert
- From: Max Schubert <schubert@pioneer.uspto.gov>
- Newsgroups: comp.lang.c
- Subject: Newbie doesn't understand compiler error
- Date: Fri, 1 Mar 1996 15:37:02 -0500
- Organization: United States Patent and Trademark Office
- Message-ID: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov>
- NNTP-Posting-Host: pioneer.uspto.gov
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
- I have just started to work with two different learning C books. They
- both have programs to copy and compile as I go along. Twice I have
- received this error from cc when attempting to compile two separate
- programs on SunOS 4.1.2:
-
- #include <stdio.h>
-
- void do_heading(char *filename);
-
- int line, page;
-
- main( int argv, char *argc[] ) <<- Compiler states "Syntax error at or near
- { word type char."
-
- Do I need to update my compiler?
-
- ANY help would be greatly appreciated.
-
- Thanks,
- Max
-
- -------------------------------------------------------------------------------
- Max Schubert U.S. Patent and Trademark Office
- STAR Database Administrator schubert@uspto.gov or
- Scientific and Technical Information Center schubert@pioneer.uspto.gov
- -------------------------------------------------------------------------------
-
-
-